<template>
  <el-form :inline="true" :model="formInline" class="demo-form-inline">
    <el-form-item >
      <el-input v-model="formInline.keywords" placeholder="部门" ></el-input>
    </el-form-item>
    <!-- <el-form-item label="类型" v-show="isShow">
      <el-select v-model="formInline.type" placeholder="类型">
        <el-option label="部门简称" value="shortName"></el-option>
        <el-option label="部门全称" value="fullName"></el-option>
        <el-option label="排序" value="orders"></el-option>
      </el-select>
    </el-form-item> -->
    <el-form-item>
       <el-button type="primary"  @click="onSubmit" icon="el-icon-search">搜索</el-button>
    </el-form-item>
   
  </el-form>
</template>

<script type="text/ecmascript-6">
import {selectMember} from '@/api/request.js'
export default {
  name: "",
  data() {
    return {
      // isShow:false,
       formInline: {
          keywords: '',
          // type: ''
        }
    };
  },
  components: {},
  methods: {
       onSubmit() {
        //  console.log(this.formInline)
         selectMember(this.formInline)
         .then(res=>{
           console.log(res.data.list);
           this.$emit("send",res.data.list)
         })
      }
  }
};
</script>

<style lang="stylus" scoped></style>
